package org.ds.blog.repository;

import org.ds.blog.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author glx
 */
public interface UserRepository extends JpaRepository<User,Integer> {
    /**
     * 根据用户名查询数据
     * @param username 用户名
     * @return User
     */
    User findByUsername(String username);
}
